﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using System.IO;
public partial class Controls_Calendar : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e) {
        if(!IsPostBack) {
            loadData();
        }
    }
    //load data
    private void loadData() {
        string fname = Server.MapPath(Setting.Calendar);
        if(!File.Exists(fname)) {
            return;
        }
        XmlDocument doc = new XmlDocument();
        doc.Load(fname);
        XmlNode root = doc.DocumentElement;
        XmlNodeList list = root.ChildNodes;
        cl.InnerHtml = Server.HtmlDecode(list.Item(0).InnerText);

    }
}